{% extends 'base.html' %}
{% block page-main %}
<div class="article-list">
                {% for article in article_list %}
                    <div class="article">
                        <p class="article-title"><a href="/blog/{{ article.user.username }}/article/{{ article.pk }}">{{ article.title }}</a></p>
                        <div class="media">
                            <div class="media-left">
                                <a href="#">
                                    <img class="media-object" id="avatar-img" src="/media/{{ article.user.avatar }}"
                                         alt="...">
                                </a>
                            </div>
                            <div class="media-body">
                                <p>{{ article.desc }}</p>
                            </div>
                        </div>
                        <div class="article-footer">
                            <span><a href="/blog/{{ article.user.username }}">{{ article.user.username }}</a></span>发布于
                            <span>{{ article.create_time|date:'Y-m-d H:i:s' }}</span>
                            <span><i class="fa fa-commenting-o"
                                     aria-hidden="true">评论({{ article.comment_count }})</i></span>
                            <span><i class="fa fa-thumbs-o-up" aria-hidden="true">点赞({{ article.up_count }})</i></span>
                            {#                            <span class="glyphicon glyphicon-comment">评论({{ article.comment_count }})</span>#}
                            {#                            <span class="glyphicon glyphicon-thumbs-up">点赞({{ article.up_count }})</span>#}
                        </div>
                    </div>
                    <hr>
                {% endfor %}

            </div>
{% endblock %}